package com.ruoyi.web.controller.srm;

import com.github.pagehelper.PageHelper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.ICSPurchaseOrder;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.web.service.ICSPurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/SRM")
public class ICSPurchaseOrderController extends BaseController {
    @Autowired
    private ICSPurchaseOrderService icsPurchaseOrderService;

    @GetMapping("/Order")
    public AjaxResult getAll(){
        PageHelper.startPage(1,100);
        List<ICSPurchaseOrder> list = icsPurchaseOrderService.selectAll();
        return success(list);
    }
}
